package com.oa.pm.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.oa.pm.dto.DimissionManagementAuditDTO;
import com.oa.pm.dto.DimissionManagementListDTO;
import com.oa.pm.vo.DimissionManagementDetailsVO;
import com.oa.pm.vo.DimissionManagementListVO;
import com.oa.pm.entity.DimissionManagement;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 离职管理表 Mapper 接口
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface DimissionManagementMapper extends BaseMapper<DimissionManagement> {
    /**
     * 分页查询列表
     *
     * @param page
     * @return
     */
    List<DimissionManagement> findList(Pagination page);

    /**
     * 查询所有列表
     *
     * @return
     */
    List<DimissionManagement> findList();

    /**
     * 根据id查询
     */
    DimissionManagement findById(@Param("id") String id);

    List<DimissionManagementListVO> findDimissionManagementAuditList(Page page, DimissionManagementListDTO dimissionManagementListDTO);

    DimissionManagementDetailsVO findDimissionManagementAudit(String id);
}
